<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/9
 * Time: 17:39
 */

namespace app\api\controller\v1;
use app\api\validate\IDMustBePostivelnt;
use app\api\model\Banner as BannerModel;


class Banner
{
    /**
     *获取指定的id号
     * @id banner的id号
     * @url (banner:id)
     */
    public function getBanner($id)
    {
        (new IDMustBePostivelnt())->goCheck();
        $banner = BannerModel::getBannerId($id);
        return $banner;



    }

}